<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="/header.jsp" %>

<div class="row">
    <%@include file="/user/user_information_left_nav.jsp" %>
    <div class="col-md-10">
        <form role="form" method="post" action="${pageContext.request.contextPath}/user/updatePersonalInfo">
            <input type="hidden" name="userId" value="${sessionScope['login'].user.userId}"/>
            <div class="form-group">
                <label for="userName"> 用户名 </label>
                <input class="form-control" name="userName" id="userName" type="text" placeholder="用户名"
                       value="${sessionScope['login'].user.userName}" disabled/>
            </div>
            <div class="form-group">
                <label> 性别 </label>
                <div class="radio">
                    <label>
                        <input type="radio" name="userSex" value="0" ${sessionScope['login'].user.userSex==0?'checked':'' }> 男
                    </label>
                    <label>
                        <input type="radio" name="userSex" value="1" ${sessionScope['login'].user.userSex==1?'checked':'' }> 女
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label for="userEmail">年龄</label>
                <input class="form-control" name="userAge" id="userAge" type="text" value="${sessionScope['login'].user.userAge}"/>
            </div>
            <div class="form-group">
                <label for="userEmail"> 邮箱</label>
                <input class="form-control" name="userEmail" id="userEmail" type="email" value="${sessionScope['login'].user.userEmail}"/>
            </div>
            <div class="form-group">
                <button class="btn btn-primary" type="submit">确定</button>
            </div>
        </form>

    </div>